package com.zyf.chapter02.structure.flyweight.eidtor.refactor;


import com.zyf.chapter02.structure.flyweight.eidtor.Font;

import java.util.ArrayList;
import java.util.List;

/**
 * 编辑器
 * @author yifeng
 */
public class Editor {
    private List<Character> chars = new ArrayList();

    public void appendCharacter(char c, Font font, int size, int colorRGB) {
        Character character = new Character(c, CharacterStyleFactory.getStyle(font, size, colorRGB));
        chars.add(character);
    }
}
